package com.esunrising.esungsc.entity;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@ApiModel(description = "GSC账务凭证分录")
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "t_api_pzfl")
public class FIGLAccDocEntry extends BaseEntity {

    @Id
    private String ID;

    @Column(name = "ABSTRACT")
    private String abstracts;

    @Column(name = "ACCDOCID")
    private String accDocID;

    @Column(name = "ACCENTRYCODE")
    private String accEntryCode;

    @Column(name = "ACCORGID")
    private String accOrgID;

    @Column(name = "DWBH")
    private String dwbh;

    @Column(name = "LEDGER")
    private String ledger;

    @Column(name = "ACCTITLECODE")
    private String accTitleCode;

    @Column(name = "ACCTITLEID")
    private String accTitleID;

    @Column(name = "ACCTGTYPE")
    private String accTGType;

    @Column(name = "AMOUNT")
    private Double amount;

    @Column(name = "BIZDATE")
    private String bizDate;

    @Column(name = "CURRENCYID")
    private String currencyID;

    @Column(name = "ENDENTRY")
    private String endEntry;

    @Column(name = "EXCHANGERATE")
    private Double exchangeRate;

    @Column(name = "FOREIGNCURRENCY")
    private Double foreignCurrency;

    @Column(name = "ISACCOUNTCHECK")
    private String isAccountCheck;

    @Column(name = "QUANTITY")
    private Double quantity;

    @Column(name = "LENDINGDIRECTION")
    private String lendingDirection;

    @Column(name = "SETTLEMENT")
    private String settlement;

    @Column(name = "SETTLEMENTNUMBER")
    private String settlementNumber;

    @Column(name = "UNITPRICE")
    private Double unitPrice;

    @Column(name = "YEAR")
    private String year;

    @Column(name = "TIMESTAMP_CREATEDON")
    private LocalDateTime timestampCreatedOn;

    @Column(name = "TIMESTAMP_LASTCHANGEDON")
    private LocalDateTime timestampLastChangedOn;
}
